package com.zyh.scs.admin.utils.jd;

import cn.hutool.core.codec.Base64;

import java.nio.charset.StandardCharsets;

/**
 * desc:
 *
 * @author hwh
 */
public class RsaUtil {

    public RsaUtil() {
    }

    public static byte[] decryptBASE64(String key) {
        return Base64.decode(key.getBytes(StandardCharsets.UTF_8));
    }

    public static String encryptBASE64(byte[] key) {
        return  Base64.encode(key);
    }

}